package cn.dansj.test;

import cn.dansj.common.jdbc.DBUtils;
import cn.dansj.common.jdbc.jdbcTemplate.JdbcTemplate;
import cn.dansj.common.jdbc.lock.DatabaseLock;

public class ConnectJdbc {
    private static final JdbcTemplate jdbcTemplate = DBUtils.createJdbcTemplate("jdbc:mysql://sh-cdb-njnwstja.sql.tencentcdb.com:21011/dansj?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai", "root", "Sunjie!@#$%^&*");

    public static void main(String[] args) {

        DatabaseLock databaseLock = new DatabaseLock("jdbc:mysql://sh-cdb-njnwstja.sql.tencentcdb.com:21011/dansj?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai", "root", "Sunjie!@#$%^&*",
                "testLock",1000,1000);

    }

}
